.class public Lcom/instagram/android/fragment/en;
.super Lcom/instagram/e/b/b;
.source "NewsFragment.java"

# interfaces
.implements Lcom/instagram/a/b;
.implements Lcom/instagram/android/fragment/a/a;


# static fields
.field public static final a:Ljava/lang/Integer;

.field public static final b:Ljava/lang/Integer;

.field private static c:Z


# instance fields
.field private final Z:Landroid/content/BroadcastReceiver;

.field private final aa:Landroid/content/BroadcastReceiver;

.field private d:Lcom/instagram/android/widget/a;

.field private e:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/Integer;",
            "Lcom/instagram/android/widget/a;",
            ">;"
        }
    .end annotation
.end field

.field private f:I

.field private g:Lcom/instagram/android/model/b/e;

.field private h:Lcom/instagram/android/feed/ui/d;

.field private final i:Landroid/content/BroadcastReceiver;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 50
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcom/instagram/android/fragment/en;->a:Ljava/lang/Integer;

    .line 51
    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    .line 53
    sput-boolean v1, Lcom/instagram/android/fragment/en;->c:Z

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 41
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 56
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    .line 57
    sget-object v0, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    iput v0, p0, Lcom/instagram/android/fragment/en;->f:I

    .line 66
    new-instance v0, Lcom/instagram/android/fragment/eo;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/eo;-><init>(Lcom/instagram/android/fragment/en;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->i:Landroid/content/BroadcastReceiver;

    .line 81
    new-instance v0, Lcom/instagram/android/fragment/ep;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/ep;-><init>(Lcom/instagram/android/fragment/en;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->Z:Landroid/content/BroadcastReceiver;

    .line 101
    new-instance v0, Lcom/instagram/android/fragment/eq;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/eq;-><init>(Lcom/instagram/android/fragment/en;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->aa:Landroid/content/BroadcastReceiver;

    return-void
.end method

.method public static Y()V
    .locals 1

    .prologue
    .line 62
    const/4 v0, 0x1

    sput-boolean v0, Lcom/instagram/android/fragment/en;->c:Z

    .line 63
    return-void
.end method

.method private a(ILandroid/os/Bundle;)Lcom/instagram/android/widget/a;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 231
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/a;

    .line 233
    if-eqz p2, :cond_0

    .line 234
    invoke-virtual {v0, p2}, Lcom/instagram/android/widget/a;->restoreState(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;

    .line 237
    :cond_0
    invoke-virtual {v0}, Lcom/instagram/android/widget/a;->getUrl()Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_1

    .line 238
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/en;->f(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/android/d/i/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/a;->loadUrl(Ljava/lang/String;)V

    .line 241
    :cond_1
    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/fragment/en;)Lcom/instagram/android/widget/a;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    return-object v0
.end method

.method private a(Ljava/lang/Integer;)Lcom/instagram/android/widget/a;
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 127
    new-instance v1, Lcom/instagram/android/widget/a;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/widget/a;-><init>(Landroid/support/v4/app/Fragment;Ljava/lang/Integer;)V

    .line 128
    invoke-virtual {v1}, Lcom/instagram/android/widget/a;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    .line 129
    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 130
    new-instance v0, Landroid/graphics/drawable/ColorDrawable;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->l()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/facebook/at;->news_background:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-direct {v0, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v1, v0}, Lcom/instagram/android/widget/a;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 135
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0xb

    if-lt v0, v2, :cond_0

    .line 136
    invoke-virtual {v1, v4}, Lcom/instagram/android/widget/a;->setLongClickable(Z)V

    .line 139
    :cond_0
    invoke-virtual {v1, v4}, Lcom/instagram/android/widget/a;->setVerticalScrollBarEnabled(Z)V

    .line 140
    new-instance v0, Lcom/instagram/android/fragment/er;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/er;-><init>(Lcom/instagram/android/fragment/en;)V

    invoke-virtual {v1, v0}, Lcom/instagram/android/widget/a;->setOnLoadingChangeListener(Lcom/instagram/android/widget/d;)V

    .line 150
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v0

    sget v2, Lcom/facebook/ax;->fragment_news_title:I

    invoke-virtual {v0, v2, v1, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/instagram/android/widget/a;->setHeaderView(Landroid/view/View;)V

    .line 155
    sget v0, Lcom/facebook/aw;->layout_button_group_news_view_switcher_button_following:I

    invoke-virtual {v1, v0}, Lcom/instagram/android/widget/a;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 158
    new-instance v2, Lcom/instagram/android/fragment/es;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/es;-><init>(Lcom/instagram/android/fragment/en;)V

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 167
    sget v0, Lcom/facebook/aw;->layout_button_group_news_view_switcher_button_you:I

    invoke-virtual {v1, v0}, Lcom/instagram/android/widget/a;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 170
    new-instance v2, Lcom/instagram/android/fragment/et;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/et;-><init>(Lcom/instagram/android/fragment/en;)V

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 179
    return-object v1
.end method

.method static synthetic a(Lcom/instagram/android/fragment/en;I)Ljava/lang/String;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 41
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/en;->f(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private a(IZ)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 298
    iput p1, p0, Lcom/instagram/android/fragment/en;->f:I

    .line 299
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    iget-object v1, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 300
    if-eqz p2, :cond_0

    .line 301
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    iget v1, p0, Lcom/instagram/android/fragment/en;->f:I

    invoke-direct {p0, v1}, Lcom/instagram/android/fragment/en;->f(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/android/d/i/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/a;->loadUrl(Ljava/lang/String;)V

    .line 315
    :cond_0
    :goto_0
    return-void

    .line 304
    :cond_1
    iget-object v2, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    .line 305
    invoke-virtual {v2}, Landroid/webkit/WebView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 306
    iget-object v1, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/android/widget/a;

    iput-object v1, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    .line 307
    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 308
    iget-object v1, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 309
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/fragment/en;->a(ILandroid/os/Bundle;)Lcom/instagram/android/widget/a;

    .line 310
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/en;->g(I)V

    .line 313
    invoke-static {}, Lcom/instagram/a/c;->a()Lcom/instagram/a/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/a/c;->b()V

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/fragment/en;IZ)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 41
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/fragment/en;->a(IZ)V

    return-void
.end method

.method private aa()V
    .locals 1

    .prologue
    .line 193
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    invoke-interface {v0, p0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/d;)V

    .line 194
    return-void
.end method

.method private ab()V
    .locals 2

    .prologue
    .line 329
    iget v0, p0, Lcom/instagram/android/fragment/en;->f:I

    sget-object v1, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ne v0, v1, :cond_2

    .line 330
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->g:Lcom/instagram/android/model/b/e;

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->r()Ljava/lang/Integer;

    move-result-object v0

    .line 332
    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-nez v0, :cond_1

    .line 333
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->v()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 334
    new-instance v1, Lcom/instagram/android/feed/ui/d;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-direct {v1, v0}, Lcom/instagram/android/feed/ui/d;-><init>(Landroid/view/ViewGroup;)V

    iput-object v1, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    .line 335
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->r()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 336
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    invoke-virtual {v0}, Lcom/instagram/android/feed/ui/d;->a()V

    .line 347
    :cond_0
    :goto_0
    return-void

    .line 341
    :cond_1
    invoke-direct {p0}, Lcom/instagram/android/fragment/en;->ac()V

    goto :goto_0

    .line 345
    :cond_2
    invoke-direct {p0}, Lcom/instagram/android/fragment/en;->ac()V

    goto :goto_0
.end method

.method private ac()V
    .locals 1

    .prologue
    .line 350
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    if-eqz v0, :cond_0

    .line 351
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    invoke-virtual {v0}, Lcom/instagram/android/feed/ui/d;->b()V

    .line 352
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    .line 354
    :cond_0
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/en;)I
    .locals 1
    .parameter

    .prologue
    .line 41
    iget v0, p0, Lcom/instagram/android/fragment/en;->f:I

    return v0
.end method

.method static synthetic b(Lcom/instagram/android/fragment/en;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 41
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/en;->h(I)V

    return-void
.end method

.method static synthetic c(Lcom/instagram/android/fragment/en;)Ljava/util/Map;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/fragment/en;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 41
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/en;->e(I)V

    return-void
.end method

.method static synthetic d(Lcom/instagram/android/fragment/en;)V
    .locals 0
    .parameter

    .prologue
    .line 41
    invoke-direct {p0}, Lcom/instagram/android/fragment/en;->ab()V

    return-void
.end method

.method private e(I)V
    .locals 3
    .parameter

    .prologue
    .line 183
    iget v0, p0, Lcom/instagram/android/fragment/en;->f:I

    if-eq p1, v0, :cond_0

    .line 184
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->m()Landroid/support/v4/app/r;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/r;->f()I

    move-result v2

    sget-object v0, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne p1, v0, :cond_1

    const-string v0, "inbox_news"

    :goto_0
    invoke-interface {v1, p0, v2, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/d;ILjava/lang/String;)V

    .line 190
    :cond_0
    return-void

    .line 184
    :cond_1
    const-string v0, "inbox_following"

    goto :goto_0
.end method

.method static synthetic e(Lcom/instagram/android/fragment/en;)V
    .locals 0
    .parameter

    .prologue
    .line 41
    invoke-direct {p0}, Lcom/instagram/android/fragment/en;->aa()V

    return-void
.end method

.method private f(I)Ljava/lang/String;
    .locals 3
    .parameter

    .prologue
    .line 245
    sget-object v0, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne p1, v0, :cond_1

    const-string v0, "news/inbox/"

    .line 248
    :goto_0
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0xa

    if-gt v1, v2, :cond_0

    .line 249
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "?lofi=1"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 252
    :cond_0
    return-object v0

    .line 245
    :cond_1
    const-string v0, "news/"

    goto :goto_0
.end method

.method private g(I)V
    .locals 6
    .parameter

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 318
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_0
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    .line 319
    sget v1, Lcom/facebook/aw;->layout_button_group_news_view_switcher_button_following:I

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    sget-object v1, Lcom/instagram/android/fragment/en;->a:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ne p1, v1, :cond_0

    move v1, v2

    :goto_1
    invoke-virtual {v5, v1}, Landroid/view/View;->setSelected(Z)V

    .line 321
    sget v1, Lcom/facebook/aw;->layout_button_group_news_view_switcher_button_you:I

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->findViewById(I)Landroid/view/View;

    move-result-object v1

    sget-object v0, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne p1, v0, :cond_1

    move v0, v2

    :goto_2
    invoke-virtual {v1, v0}, Landroid/view/View;->setSelected(Z)V

    goto :goto_0

    :cond_0
    move v1, v3

    .line 319
    goto :goto_1

    :cond_1
    move v0, v3

    .line 321
    goto :goto_2

    .line 325
    :cond_2
    invoke-direct {p0}, Lcom/instagram/android/fragment/en;->ab()V

    .line 326
    return-void
.end method

.method private h(I)V
    .locals 1
    .parameter

    .prologue
    .line 357
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/fragment/en;->a(IZ)V

    .line 358
    return-void
.end method


# virtual methods
.method public X()V
    .locals 1

    .prologue
    .line 452
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    if-eqz v0, :cond_0

    .line 453
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    invoke-virtual {v0}, Lcom/instagram/android/widget/a;->a()V

    .line 455
    :cond_0
    return-void
.end method

.method public Z()I
    .locals 1

    .prologue
    .line 458
    iget v0, p0, Lcom/instagram/android/fragment/en;->f:I

    return v0
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 197
    sget v0, Lcom/facebook/ax;->fragment_news:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 266
    new-instance v0, Lcom/instagram/android/fragment/eu;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/eu;-><init>(Lcom/instagram/android/fragment/en;)V

    return-object v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    .line 110
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 112
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->g:Lcom/instagram/android/model/b/e;

    .line 114
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    sget-object v1, Lcom/instagram/android/fragment/en;->a:Ljava/lang/Integer;

    sget-object v2, Lcom/instagram/android/fragment/en;->a:Ljava/lang/Integer;

    invoke-direct {p0, v2}, Lcom/instagram/android/fragment/en;->a(Ljava/lang/Integer;)Lcom/instagram/android/widget/a;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 115
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    sget-object v1, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    sget-object v2, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-direct {p0, v2}, Lcom/instagram/android/fragment/en;->a(Ljava/lang/Integer;)Lcom/instagram/android/widget/a;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 121
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/en;->Z:Landroid/content/BroadcastReceiver;

    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "com.instagram.android.receiver.C2DMReceiver.NOTIFICATION_RECEIVED_BROADCAST_PROXY"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 123
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 202
    invoke-super {p0, p1, p2}, Lcom/instagram/e/b/b;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 204
    if-eqz p2, :cond_0

    .line 205
    const-string v0, "NewsFragment.STATE_CURRENT_MODE"

    sget-object v1, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p2, v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/instagram/android/fragment/en;->f:I

    .line 208
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    if-nez v0, :cond_1

    .line 213
    invoke-static {}, Lcom/instagram/android/activity/NewsActivityInTab;->o()Z

    .line 215
    iget v0, p0, Lcom/instagram/android/fragment/en;->f:I

    invoke-direct {p0, v0, p2}, Lcom/instagram/android/fragment/en;->a(ILandroid/os/Bundle;)Lcom/instagram/android/widget/a;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    .line 217
    :cond_1
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 219
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/en;->aa:Landroid/content/BroadcastReceiver;

    new-instance v2, Landroid/content/IntentFilter;

    iget-object v3, p0, Lcom/instagram/android/fragment/en;->g:Lcom/instagram/android/model/b/e;

    invoke-virtual {v3}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/instagram/android/model/b/e;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 222
    iget v0, p0, Lcom/instagram/android/fragment/en;->f:I

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/en;->g(I)V

    .line 223
    return-void
.end method

.method public d(Landroid/os/Bundle;)V
    .locals 0
    .parameter

    .prologue
    .line 227
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->d(Landroid/os/Bundle;)V

    .line 228
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 2

    .prologue
    .line 463
    iget v0, p0, Lcom/instagram/android/fragment/en;->f:I

    sget-object v1, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ne v0, v1, :cond_0

    const-string v0, "news_inbox"

    :goto_0
    return-object v0

    :cond_0
    const-string v0, "news_following"

    goto :goto_0
.end method

.method public e(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 257
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    .line 258
    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->saveState(Landroid/os/Bundle;)Landroid/webkit/WebBackForwardList;

    goto :goto_0

    .line 260
    :cond_0
    const-string v0, "NewsFragment.STATE_CURRENT_MODE"

    iget v1, p0, Lcom/instagram/android/fragment/en;->f:I

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 261
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->e(Landroid/os/Bundle;)V

    .line 262
    return-void
.end method

.method public e_()V
    .locals 0

    .prologue
    .line 430
    invoke-super {p0}, Lcom/instagram/e/b/b;->e_()V

    .line 431
    return-void
.end method

.method public f_()V
    .locals 0

    .prologue
    .line 425
    invoke-super {p0}, Lcom/instagram/e/b/b;->f_()V

    .line 426
    return-void
.end method

.method public g_()V
    .locals 2

    .prologue
    .line 416
    iget-object v1, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    .line 417
    invoke-virtual {v1}, Landroid/webkit/WebView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 418
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    .line 419
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/en;->aa:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 420
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 421
    return-void
.end method

.method public w()V
    .locals 3

    .prologue
    .line 380
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 386
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/NewsActivityInTab;

    invoke-virtual {v0}, Lcom/instagram/android/activity/NewsActivityInTab;->l()V

    .line 394
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 395
    const-string v1, "ActionBarService.action_bar_refresh_click"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 396
    const-string v1, "NewsFragment.BROADCAST_SWITCH_TO_INBOX"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 397
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/fragment/en;->i:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v2, v0}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 401
    sget-boolean v0, Lcom/instagram/android/fragment/en;->c:Z

    if-eqz v0, :cond_0

    .line 402
    const/4 v0, 0x0

    sput-boolean v0, Lcom/instagram/android/fragment/en;->c:Z

    .line 403
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    iget-object v1, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    sget-object v2, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    if-eq v0, v1, :cond_0

    .line 404
    sget-object v0, Lcom/instagram/android/fragment/en;->b:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/en;->h(I)V

    .line 408
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    if-eqz v0, :cond_1

    .line 409
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->h:Lcom/instagram/android/feed/ui/d;

    invoke-virtual {v0}, Lcom/instagram/android/feed/ui/d;->a()V

    .line 411
    :cond_1
    return-void
.end method

.method public x()V
    .locals 2

    .prologue
    .line 365
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 372
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/en;->i:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 373
    return-void
.end method

.method public y()V
    .locals 2

    .prologue
    .line 438
    invoke-virtual {p0}, Lcom/instagram/android/fragment/en;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/en;->Z:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 440
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    .line 441
    if-eqz v0, :cond_0

    .line 442
    invoke-virtual {v0}, Landroid/webkit/WebView;->destroy()V

    goto :goto_0

    .line 445
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/fragment/en;->e:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    .line 446
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/fragment/en;->d:Lcom/instagram/android/widget/a;

    .line 447
    invoke-super {p0}, Lcom/instagram/e/b/b;->y()V

    .line 448
    return-void
.end method
